package com.manager.car.service;

import java.util.List;

import com.manager.car.dao.ICarsDao;
import com.manager.car.po.Cars;
import com.manager.car.util.PageModel;

public class CarsServiceImpl implements ICarsService {

	private ICarsDao dao;
	public Cars queryById(Integer id) {
		return dao.queryById(id);
	}

	public List<Cars> queryAll() {
		return dao.queryAll();
	}

	public void save(Cars car) {
		dao.save(car);
	}

	public void delete(Integer id) {
		dao.delete(id);
	}

	public void update(Cars car) {
		dao.update(car);
	}

	public ICarsDao getDao() {
		return dao;
	}

	public void setDao(ICarsDao dao) {
		this.dao = dao;
	}

	public PageModel<Cars> queryall(int pageNo, int pageSize) {
		return dao.queryall(pageNo, pageSize);
	}
	
	
	

}
